using Kitware.VTK;
using System;

public class HolographicRemotingClass
{
  public static void Main(String[] argv)
  {
    vtkOpenXRRenderer renderer = vtkOpenXRRenderer.New();
    vtkOpenXRRemotingRenderWindow renderWindow = vtkOpenXRRemotingRenderWindow.New();
    vtkOpenXRRenderWindowInteractor interactor = vtkOpenXRRenderWindowInteractor.New();
    renderWindow.AddRenderer(renderer);
    interactor.SetRenderWindow(renderWindow);

    renderWindow.SetRemotingIPAddress(argv[0]);

    vtkSphereSource source = vtkSphereSource.New();
    source.SetRadius(0.2);
    source.Update();

    vtkPolyDataMapper mapper = vtkPolyDataMapper.New();
    mapper.SetInputData(source.GetOutput());

    vtkActor actor = vtkActor.New();
    actor.SetMapper(mapper);
    actor.SetPosition(0, 0, -1);
    renderer.AddActor(actor);

    interactor.Start();
  }
}
